import { UID_KEY,GAME_ID,GAME_STAGE } from '@/common/utils'

export default {
	clearCurrentGame({ commit }) {
		uni.setStorageSync('GAME_ID',null)
		uni.setStorageSync('GAME_STAGE',null)
		commit('setCurrentGameDTO', [])
	    commit('setCurrentGameRoleList', [])
	    commit('setCurrentGameRoleListConfirm', [])
	    commit('setCurrentGameRoleParams',[])
		commit('setGameStatus', "")
		commit('setGameStageCode', "")	
	  },
	logOut({ commit }){
		 uni.setStorageSync('UID_KEY', {})
		 commit('setLoginStatus', false)
		 commit('setUser', {}) 
		// uni.removeStorageSync('UID_COOKIE'); 
	} 
  }